#参考
https://nerd-tech.net/2021/09/06/how-to-install-openvpn-3-client-on-ubuntu-20-04/

# 加入 openvpn 源
sudo nano /etc/apt/sources.list.d/openvpn3.list
# OpenVPN3 Official Apt Repository for openvpn3.
deb https://swupdate.openvpn.net/community/openvpn3/repos focal main

cd ~/
sudo apt install apt-transport-https && wget https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub && sudo apt-key add openvpn-repo-pkg-key.pub
rm ~/openvpn-repo-pkg-key.pub
sudo apt update && sudo apt install openvpn3

# 导入配置
openvpn3 config-import --config ~/github/config/zjt.ovpn --name test_vpn --persistent
# 连接
openvpn3 session-start --config test_vpn
# 断开连接
openvpn3 session-manage --config test_vpn --disconnect
# 连接列表
openvpn3 sessions-list

# 自动载入
cd /etc/openvpn3/autoload/
cd /etc/openvpn3/autoload && sudo nano myvpn3client.autoload
sudo systemctl enable openvpn3-autoload.service
